﻿using UnityEngine;
using UnityEditor;
using System;
using Sirenix.OdinInspector;

[Serializable]
public class SkillBulletTriggerData : MyScriptableObject
{


    //对应的子弹组的触发时效
    [LabelText("子弹触发帧数")]
    public int bulletTriggerFrame;
    //对应的子弹组和触发时效
    [Title("@this.skillBulletDataDesc")]
    [FoldoutGroup("子弹属性", Expanded = true)]
    [HideLabel]
    public SkillBulletData skillBulletData;

    [LabelText("触发额外技能:")]
    public SkillData triggerSkill;
    [LabelText("触发额外技能条件:")]
    public int triggerSkillCondition;

#if UNITY_EDITOR
    [HideInInspector]
    public string skillBulletDataDesc { get { return this.skillBulletData == null ? "请选择" : this.skillBulletData.desc; } }
#endif

}